#include<iostream>

int main()
{
    using namespace std;
    const double minutes_per_degrees(60.0);
    const double seconds_per_minutes(60.0);
    double degrees,minutes,seconds;
    double degrees_all;

    cout << "Enter a latitude in degrees, minutes, and seconds:\n";
    cout <<"First,enter the degrees:";
    cin >> degrees;
    cout << "Next,enter the minutes of arc:";
    cin >> minutes;
    cout << "Finally,enter the seconds of arc:";
    cin >> seconds;
    degrees_all = ((seconds / seconds_per_minutes + minutes) / minutes_per_degrees )+ degrees;
    
    cout << "1degrees,2minutes,3seconds=" << degrees_all << "degrees";

    return 0;
}